package com.blb.zycommunity.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 小区 
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
@TableName("zy_community")
@Data
@ColumnWidth(25)                                //列宽
@HeadFontStyle(fontHeightInPoints = 20)         //标题行高
@ContentFontStyle(fontHeightInPoints = 12)      //内容行高
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, fillBackgroundColor = -1) //内容居中，颜色默认
@ApiModel(value = "ZyCommunity对象", description = "小区 ")
public class ZyCommunity implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ExcelProperty("小区id")
    @ApiModelProperty("小区id")
    @TableId(type = IdType.AUTO)
    private String communityId;

    @ExcelProperty("小区名称")
    @ApiModelProperty("小区名称")
    private String communityName;

    @ExcelProperty("小区编码")
    @ApiModelProperty("小区编码")
    private String communityCode;

    @ExcelIgnore
    @ApiModelProperty("省区划码")
    private String communityProvenceCode;

    @ExcelIgnore
    @ApiModelProperty("市区划码")
    private String communityCityCode;

    @ExcelIgnore
    @ApiModelProperty("区县区划码")
    private String communityTownCode;

    @ExcelIgnore
    @ApiModelProperty("详细地址")
    private String communityDetailedAddress;

    @ExcelIgnore
    @ApiModelProperty("经度")
    private String communityLongitude;

    @ExcelIgnore
    @ApiModelProperty("纬度")
    private String communityLatitude;

    @ExcelIgnore
    @ApiModelProperty("物业id")
    private Long deptId;

    @ExcelIgnore
    @ApiModelProperty("排序")
    private Integer communitySort;

    @ExcelIgnore
    @ApiModelProperty("创建者")
    private String createBy;

    @ExcelProperty("创建时间")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ExcelIgnore
    @ApiModelProperty("更新者")
    private String updateBy;

    @ExcelIgnore
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ExcelProperty("备注")
    @ApiModelProperty("备注")
    private String remark;

    @ExcelProperty("省名")
    @TableField(exist = false)
    private String provenceName;        //省名

    @ExcelProperty("市名")
    @TableField(exist = false)
    private String cityName;            //市名

    @ExcelProperty("地区名")
    @TableField(exist = false)
    private String townName;            //地区名

    public String getProvenceName() {
        return provenceName;
    }

    public void setProvenceName(String provenceName) {
        this.provenceName = provenceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getCommunityCode() {
        return communityCode;
    }

    public void setCommunityCode(String communityCode) {
        this.communityCode = communityCode;
    }

    public String getCommunityProvenceCode() {
        return communityProvenceCode;
    }

    public void setCommunityProvenceCode(String communityProvenceCode) {
        this.communityProvenceCode = communityProvenceCode;
    }

    public String getCommunityCityCode() {
        return communityCityCode;
    }

    public void setCommunityCityCode(String communityCityCode) {
        this.communityCityCode = communityCityCode;
    }

    public String getCommunityTownCode() {
        return communityTownCode;
    }

    public void setCommunityTownCode(String communityTownCode) {
        this.communityTownCode = communityTownCode;
    }

    public String getCommunityDetailedAddress() {
        return communityDetailedAddress;
    }

    public void setCommunityDetailedAddress(String communityDetailedAddress) {
        this.communityDetailedAddress = communityDetailedAddress;
    }

    public String getCommunityLongitude() {
        return communityLongitude;
    }

    public void setCommunityLongitude(String communityLongitude) {
        this.communityLongitude = communityLongitude;
    }

    public String getCommunityLatitude() {
        return communityLatitude;
    }

    public void setCommunityLatitude(String communityLatitude) {
        this.communityLatitude = communityLatitude;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Integer getCommunitySort() {
        return communitySort;
    }

    public void setCommunitySort(Integer communitySort) {
        this.communitySort = communitySort;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "ZyCommunity{" +
            "communityId = " + communityId +
            ", communityName = " + communityName +
            ", communityCode = " + communityCode +
            ", communityProvenceCode = " + communityProvenceCode +
            ", communityCityCode = " + communityCityCode +
            ", communityTownCode = " + communityTownCode +
            ", communityDetailedAddress = " + communityDetailedAddress +
            ", communityLongitude = " + communityLongitude +
            ", communityLatitude = " + communityLatitude +
            ", deptId = " + deptId +
            ", communitySort = " + communitySort +
            ", createBy = " + createBy +
            ", createTime = " + createTime +
            ", updateBy = " + updateBy +
            ", updateTime = " + updateTime +
            ", remark = " + remark +
        "}";
    }


}
